package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.Menu;
import com.xingxuecn.limit.common.model.Page;
import com.xingxuecn.limit.common.model.TreeNode;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/5 17:58
 */
public interface MenuService {
    List<Menu> findAll() throws SQLException;

    List<Menu> search(Menu menu) throws SQLException;

    int add(Menu menu) throws SQLException;

    int update(Menu menu) throws SQLException;

    int delete(Integer id) throws SQLException;


    List<TreeNode> menuTree() throws SQLException;

    Page searchPage(Menu menu, Integer page, Integer rows) throws SQLException;
}